import javax.print.attribute.standard.MediaSize;
import javax.print.attribute.standard.MediaSizeName;


public class Teste {

	public static void main(String[] args) {
		MediaSizeName m1 = MediaSize.findMedia(101.6f, 152.4f, MediaSize.MM);
		MediaSizeName m2 = MediaSize.findMedia(4f, 6f, MediaSize.INCH);
		MediaSize m3 = MediaSize.getMediaSizeForName(MediaSizeName.NA_10X15_ENVELOPE);
		MediaSize m4 = MediaSize.getMediaSizeForName(MediaSizeName.ISO_A6);
		MediaSize m5= MediaSize.getMediaSizeForName(MediaSizeName.JAPANESE_POSTCARD);
		//MediaSize m5= MediaSize.getMediaSizeForName(MediaSizeName.);
		
		System.out.println(m1);
		System.out.println(m2);
		System.out.println(m3);
		System.out.println(m4);
		System.out.println(m5);
		

	}

}
